﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EditCustomer.aspx.cs" Inherits="Customer_EditCustomer" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/f_css.css" rel="stylesheet" type="text/css" />
    <link href="../css/listpage.css" rel="stylesheet" type="text/css" />
    <style>
    #tableContent
    {
        width:99%;
    }
    #tableContent, #tableContent td
    {
        border:0px;
    }
    #tableContent.tdTitle
    {
        border-bottom:2px solid #444444;
    }
    .table2 tbody tr td
    {
        height:20px; line-height:20px;
        padding:2px 10px 2px 2px;
    }
    .hr
    {
        border:1px solid #ADA3A5;
        width:99%;
    }
    .singleline
    {
        width:180px;
    }
    .td_title
    {
        text-align:right; padding-right:10px; vertical-align:baseline;
    }
        .style1
        {
            text-align: right;
            padding-right: 10px;
            vertical-align: baseline;
        }
    </style>
    <script language="javascript" src="../js/subMsg.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="titleText">
        <asp:Label runat="server" ID="txtTitle">编辑客户 “北京航空航天大学”</asp:Label>
    </div>
    <div class="btdiv2">
            <a href="javascript:window.location.href='MyCustomers.aspx';">&lt;&lt;返回客户列表</a>
            &nbsp;<asp:Button ID="btnSave" runat="server" CssClass="input00" Text="保存" 
                onclick="btnSave_Click" />
            <asp:Button ID="btnContactor" class="input00" runat="server" Text="管理联系人" />
            <asp:Button ID="btnContactorFile" class="input00" runat="server" Text="客户文件"
                
                OnClientClick="javascript:window.location.href='ManageCustomerFiles.aspx?id=3&back=DAF+=fdfad';return false;" />
            </div>
    <table id="tableContent" class="table2">
    <tr style="height:1px; line-height:1px;" title="template">
        <td style="width:50px;">&nbsp;</td>
        <td style="width:140px;">&nbsp;</td>
        <td style="width:200px;">&nbsp;</td>
        <td style="width:auto;">&nbsp;</td>
        </tr>
    <tr>
        <td class="tdTitle" colspan="4">基本信息<hr class="hr" /></td>
        </tr>
        <tr>
        <td></td>
        <td class="td_title">客户身份</td>
        <td>
            <asp:DropDownList runat="server" ID="drpBusinessType">
                <asp:ListItem Text="委托人" Value="0"></asp:ListItem>
                <asp:ListItem Text="申请人" Value="1"></asp:ListItem>
                <asp:ListItem Text="委托人兼申请人" Value="2"></asp:ListItem>
            </asp:DropDownList>
            </td>
        <td><span class="alert">*</span>选择是委托人还是申请人</td>
        </tr>
    <tr>
        <td></td>
        <td class="td_title">客户名</td>
        <td>
            <anthem:TextBox ID="txtName" runat="server" CssClass="conint singleline"></anthem:TextBox></td>
        <td><span class="alert">*</span>个人(或单位)的完整名称</td>
        </tr>
        <tr>
        <td></td>
        <td class="td_title">英文名</td>
        <td>
            <anthem:TextBox ID="txtName_En" runat="server" CssClass="conint singleline"></anthem:TextBox></td>
        <td>个人(或单位)的英文名称，如果没有，可不填</td>
        </tr>
        <tr>
        <td></td>
        <td class="td_title">客户代码</td>
        <td>
            <anthem:TextBox ID="txtCustomerCode" runat="server" CssClass="conint singleline"></anthem:TextBox></td>
        <td><span class="alert">*</span>请填入个人的有效证件号码，或单位的注册号等</td>
        </tr>
        <tr>
        <td></td>
        <td class="td_title">客户类别</td>
        <td>
            <asp:DropDownList ID="drpCustomerType" runat="server">
                <asp:ListItem Text="企事业法人" Value="0"></asp:ListItem>
                <asp:ListItem Text="个人" Value="1"></asp:ListItem>
            </asp:DropDownList>
            </td>
        <td><span class="alert">*</span></td>
        </tr>
        <tr>
        <td></td>
        <td class="td_title">国家</td>
        <td>
            <asp:DropDownList ID="drpCountry" runat="server" 
                DataSourceID="SqlDataSource1" DataTextField="dName" DataValueField="dID" 
                ondatabound="drpCountry_DataBound">
            </asp:DropDownList>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                SelectCommand="SELECT RTRIM([dID]) AS dID, RTRIM([dName]) AS dName FROM [TD_Country] ORDER BY [dName] ASC">
            </asp:SqlDataSource>
        </td>
        <td>默认为中国</td>
        </tr>
    <tr>
        <td></td>
        <td class="td_title">所在城市</td>
        <td>
            <asp:DropDownList ID="drpProvince" runat="server"
                DataTextField="dName" DataValueField="dID" 
                ondatabound="drpProvince_DataBound" AutoCallBack="True" 
                AutoPostBack="True" onselectedindexchanged="drpProvince_SelectedIndexChanged">
            </asp:DropDownList>
            <asp:DropDownList ID="drpCity" runat="server">
            </asp:DropDownList>
        </td>
        <td></td>
        </tr>
    <tr>
        <td>&nbsp;</td>
        <td class="td_title">邮编</td>
        <td>
            <asp:TextBox ID="txtZipCode" runat="server" CssClass="conint singleline"></asp:TextBox>
        </td>
        <td>&nbsp;</td>
        </tr>
    <tr>
        <td>&nbsp;</td>
        <td class="td_title">客户详细地址</td>
        <td colspan="2">
            <asp:TextBox ID="txtAddress" runat="server" CssClass="conint" Width="260px"></asp:TextBox>
        </td>
        </tr>
    <tr>
        <td>&nbsp;</td>
        <td class="td_title">主页</td>
        <td colspan="2">
            <asp:TextBox ID="txtHomepage" runat="server" CssClass="conint" Width="260px"></asp:TextBox>
        </td>
        </tr>
    <tr>
        <td colspan="4">联系方式<hr class="hr" /></td>
        </tr>
        <tr>
        <td></td>
        <td class="td_title">联系人</td>
        <td>
            <asp:TextBox ID="txtContactorName" runat="server" CssClass="conint singleline"></asp:TextBox>
            <asp:DropDownList ID="drpContactorSubfix" runat="server">
                <asp:ListItem Text="先生" Value="0"></asp:ListItem>
                <asp:ListItem Text="女士" Value="1"></asp:ListItem>
            </asp:DropDownList>
            </td>
        <td><span class="alert">*</span> 客户的主要联系人</td>
        </tr>
    <tr>
        <td>&nbsp;</td>
        <td class="td_title">电话</td>
        <td>
            <asp:TextBox ID="txtTel" runat="server" CssClass="conint singleline"></asp:TextBox></td>
        <td><span class="alert">*</span> 联系人电话</td>
        </tr>
        <tr>
        <td>&nbsp;</td>
        <td class="td_title">手机</td>
        <td>
            <asp:TextBox ID="txtMobile" runat="server" CssClass="conint singleline"></asp:TextBox></td>
        <td>&nbsp;</td>
        </tr>
    <tr>
        <td>&nbsp;</td>
        <td class="td_title">传真</td>
        <td>
            <anthem:TextBox ID="txtContactorFax" runat="server" CssClass="conint singleline"></anthem:TextBox></td>
        <td>&nbsp;</td>
        </tr>
    <tr>
        <td>&nbsp;</td>
        <td class="td_title">电子邮箱</td>
        <td>
            <anthem:TextBox ID="TextBox6" runat="server" CssClass="conint" Width="260px"></anthem:TextBox></td>
        <td><span class="alert">*</span> 联系人的电子邮箱</td>
        </tr>
    <tr>
        <td>&nbsp;</td>
        <td class="td_title">地址</td>
        <td colspan="2">
            <anthem:TextBox ID="txtContactorAddress" runat="server" CssClass="conint" Width="260px" 
                ReadOnly="True"></anthem:TextBox>&nbsp;
            </td>
        </tr>
    <tr>
        <td></td>
        <td class="style1">邮编</td>
        <td>
            <anthem:TextBox ID="txtContactorZipcode" runat="server" CssClass="conint singleline" 
                ReadOnly="True"></anthem:TextBox></td>
        <td></td>
        </tr>
    <tr>
        <td colspan="4">其它信息<hr class="hr" /></td>
        </tr>
        <tr>
        <td>&nbsp;</td>
        <td class="td_title">法人代表</td>
        <td>
            <anthem:TextBox ID="txtRepresenter" runat="server" CssClass="conint singleline"></anthem:TextBox></td>
        <td>&nbsp;</td>
        </tr>
    <tr>
        <td>&nbsp;</td>
        <td class="td_title">法人代表职务</td>
        <td>
            <anthem:TextBox ID="txtRepresenterPosition" runat="server" CssClass="conint singleline"></anthem:TextBox></td>
        <td>&nbsp;</td>
        </tr>
    <tr>
        <td>&nbsp;</td>
        <td class="td_title">现在是否有业务</td>
        <td>
            <asp:DropDownList ID="drpHasCasesCurrently" runat="server">
                <asp:ListItem Text="是" Value="1"></asp:ListItem>
                <asp:ListItem Text="否" Value="0"></asp:ListItem>
            </asp:DropDownList>
            </td>
        <td>&nbsp;</td>
        </tr>
    <tr>
        <td>&nbsp;</td>
        <td class="td_title">客户特殊要求</td>
        <td colspan="2">
            <anthem:TextBox ID="TextBox18" runat="server" CssClass="textarea01" 
                TextMode="MultiLine"></anthem:TextBox></td>
        </tr>
    <tr>
        <td>&nbsp;</td>
        <td class="td_title">备注</td>
        <td colspan="2">
            <anthem:TextBox ID="TextBox19" runat="server" CssClass="textarea01" 
                TextMode="MultiLine"></anthem:TextBox></td>
        </tr>
    <tr>
        <td>&nbsp;</td>
        <td class="td_title"></td>
        <td>
            &nbsp;</td>
        <td>&nbsp;</td>
        </tr>
    <tr>
        <td>&nbsp;</td>
        <td class="td_title">&nbsp;</td>
        <td>
            &nbsp;</td>
        <td>&nbsp;</td>
        </tr>
    </table>
    <div class="btdiv2">
            <a href="javascript:window.location.href='MyCustomers.aspx';">&lt;&lt;返回客户列表</a>
            &nbsp;<asp:Button ID="btnSave2" runat="server" CssClass="input00" Text="保存" />
    </div>

    </form>
</body>
</html>
